import requests

cookies = {
    'kg_mid': '902d60e2eade52714f3932fd267da5c3',
    'Hm_lvt_aedee6983d4cfc62f509129360d6bb3d': '1713878658',
    'kg_dfid': '2C7bvl1BsbFi2KzBhf1uCjU2',
    'kg_dfid_collect': 'd41d8cd98f00b204e9800998ecf8427e',
    'kg_mid_temp': '902d60e2eade52714f3932fd267da5c3',
    'ACK_SERVER_10017': '%7B%22list%22%3A%5B%5B%22bjverifycode.service.kugou.com%22%5D%5D%7D',
    'ACK_SERVER_10015': '%7B%22list%22%3A%5B%5B%22bjlogin-user.kugou.com%22%5D%5D%7D',
    'ACK_SERVER_10016': '%7B%22list%22%3A%5B%5B%22bjreg-user.kugou.com%22%5D%5D%7D',
    'Hm_lpvt_aedee6983d4cfc62f509129360d6bb3d': '1713885810',
}

headers = {
    'authority': 'www.kugou.com',
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
    'accept-language': 'zh-CN,zh;q=0.9',
    'cache-control': 'max-age=0',
    'cookie': 'kg_mid=902d60e2eade52714f3932fd267da5c3; Hm_lvt_aedee6983d4cfc62f509129360d6bb3d=1713878658; kg_dfid=2C7bvl1BsbFi2KzBhf1uCjU2; kg_dfid_collect=d41d8cd98f00b204e9800998ecf8427e; kg_mid_temp=902d60e2eade52714f3932fd267da5c3; ACK_SERVER_10017=%7B%22list%22%3A%5B%5B%22bjverifycode.service.kugou.com%22%5D%5D%7D; ACK_SERVER_10015=%7B%22list%22%3A%5B%5B%22bjlogin-user.kugou.com%22%5D%5D%7D; ACK_SERVER_10016=%7B%22list%22%3A%5B%5B%22bjreg-user.kugou.com%22%5D%5D%7D; Hm_lpvt_aedee6983d4cfc62f509129360d6bb3d=1713885810',
    'if-modified-since': 'Tue, 23 Apr 2024 15:19:31 GMT',
    'referer': 'https://www.kugou.com/yy/rank/home/2-6666.html?from=rank',
    'sec-ch-ua': '"Chromium";v="9", "Not?A_Brand";v="8"',
    'sec-ch-ua-mobile': '?0',
    'sec-ch-ua-platform': '"Windows"',
    'sec-fetch-dest': 'document',
    'sec-fetch-mode': 'navigate',
    'sec-fetch-site': 'same-origin',
    'sec-fetch-user': '?1',
    'upgrade-insecure-requests': '1',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 SLBrowser/9.0.3.4111 SLBChan/32',
}

params = {
    'from': 'rank',
}

response = requests.get('https://www.kugou.com/yy/rank/home/1-8888.html', params=params, cookies=cookies, headers=headers)

print(response.text)